package com.lhd.service.impl;

import com.lhd.mapper.ImgMapper;
import com.lhd.pojo.Img;
import com.lhd.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImgServiceImpl implements ImgService {
    @Autowired
    private ImgMapper imgMapper;
    @Override
    public List<Img> getAll() {
        return imgMapper.getAll();
    }

    @Override
    public void update(Img img) {
        imgMapper.update(img);
    }

    @Override
    public void add(String url) {
        imgMapper.add(url);
    }

    @Override
    public void remove(Integer id) {
        imgMapper.remove(id);
    }
}
